package com.ruoyi.factory.taxShare.service.impl;

import com.ruoyi.factory.taxShare.domain.User;
import com.ruoyi.factory.taxShare.mapper.IUserMapper;
import com.ruoyi.factory.taxShare.service.Itestservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName TestserviceImpl
 * @Description: TODO
 * @Author LiuJiaji
 * @Date 2023/11/22 13:52
 **/
@Service
public class TestserviceImpl implements Itestservice {
    @Autowired
    private IUserMapper IUserMapper;

    public void test(){
        List<User> users = IUserMapper.findAll();
        for (User user:users) {
            System.out.println("------每个用户的信息-------");
            System.out.println(user);
            System.out.println(user.getAccounts());
        }
    }
}
